﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ArrayTest
{
    public static class ArrayHelp
    {


        public static string OutArray(this object[,] sty)
        {
            string strArray = "";

            for(int i = 0; i < sty.GetLength(0); i++)
            {
                for(int j = 0; j < sty.GetLength(1); j++)
                {
                    strArray += sty[i, j]+" ";
                }
                strArray += "\n";
            }


            return strArray;
        }

        public static string OutArray(this object[] ob)
        {
            string strArray = "";
            foreach(var item in ob)
            {
                strArray += item +"\n";

            }


            return strArray;
        }



    }
}
